package net.blogways.ordermgr.util;

import org.apache.commons.chain.Context;

import java.util.Map;

/**
 * @author chenxin
 * created on  2017/10/27
 */
public class InitMap {

  /**
   * 整理参数.
   *
   * @param context
   * @param params
   * @param str
   */
  public static void intMap(Context context, Map params, String str) {
    if (!context.get(str).equals("") && context.get(str) != null) {
      params.put("V" + str, context.getOrDefault(str, null));
    } else {
      params.put("V" + str, null);
    }
  }

}
